home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 1.8 KB | 72 lines | [TEXT/CWIE] |
- // CModalStuff.h -- dialog class
-
- #pragma once
-
- #include <LGADialog.h>
-
- #include "DModalStuffData.h"
-
- class LStream;
-
- class LPushButton;
- class CControlPane;
- class LTextGroupBox;
- class LPopupButton;
- class LTextTableView;
-
-
- //----------
- class CModalStuff : public LGADialog {
- public: // these comprise the programming interface for using the dialog
- static CModalStuff* CreateModalStuff (LCommander* inSuperCommander,
- CommandT inCommand,
- DModalStuffData* inData);
- virtual void SetFromData (DModalStuffData* inData);
- virtual DModalStuffData* GetData ();
-
- // these functions will be obsoleted
- // retained only for backwards compatibility
- virtual Boolean GetToolsChoice();
- virtual void SetToolsChoice (Int32 inChoice);
- virtual short GetFromValuesList2PopupChoice();
- virtual void SetFromValuesList2PopupChoice (short choice);
- virtual short GetFromMenuPopupChoice();
- virtual void SetFromMenuPopupChoice (short choice);
-
-
- public: // these comprise the implementation
- enum { class_ID = 'Modf' };
-
- CModalStuff (LStream* inStream);
- virtual ~CModalStuff();
-
- virtual void ListenToMessage (MessageT inMessage,
- void *ioParam);
-
- virtual Boolean ObeyCommand (CommandT inCommand,
- void *ioParam = nil);
- virtual void FindCommandStatus (CommandT inCommand,
- Boolean &outEnabled,
- Boolean &outUsesMark,
- Char16 &outMark,
- Str255 outName);
-
- protected:
- static void RegisterClass();
- virtual void FinishCreateSelf();
- virtual void DataChanged (long inDataID);
-
- protected:
- static Boolean sIsRegistered;
- CommandT mCommand;
-
- LPushButton* mOKButton;
- CControlPane* mToolsPalette;
- LPopupButton* mFromValuesList2Popup;
- LPopupButton* mFromMenuPopup;
- LTextTableView* mTextListTable;
-
- DModalStuffData* mData;
-
- };
-